var pageSize = 10;
$(document).ready(function(){
	//表格初始化
	initTable();
	//事件绑定
	eventBind();
});

function eventBind(){
	$("#queryBtn").click(pageQuery).click();
}

function initTable(){
	$('#applyCountTable').bootstrapTable({
		onPageChange: function (number, size) {
		    pageSize = size;
			query(number, size);
		}
	});
}

//带有分页信息的查询
function pageQuery(){
	query(1, pageSize);
}
//查询医生申请量
function query(pageNumber, pageSize){
	var queryCondition={
			pageNumber: pageNumber, 
			pageSize: pageSize,
			params:$("#countForm").collect()
	}
	$.getApiClient('/applyCount/listApplyHosCost').post(queryCondition).done(function(data){
	    $('#applyCountTable').bootstrapTable('load', data.payload);
	});
}

